package lianxi5.正则表达式;

public class test3 {
    public static void main(String[] args) {

    }

    public static boolean isPhoneNumber(String str) {
        boolean a = str.matches("1[3-9][0-9]{9}");
        return a;
    }

    public static boolean isEmail(String str) {
        boolean a = str.matches("\\w+@(\\w+\\.)+\\w+");
        return a;
    }

    public static boolean iszuoji(String str){
        boolean a = str.matches("0\\d{2,3}-?[1-9]{6,9}");
        return a;
    }
}
